package org.example.controller;

import jakarta.annotation.Resource;
import org.example.utils.RedisUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class RedisController {
    @PostMapping("/setKey")
    public void setKey(String key,String val){
        RedisUtil.StringOps.set(key,val);

    }
}
